<?php
/*
$_SERVER 是一个包含了诸如头信息(header)、路径(path)、以及脚本位置(script locations)等等
信息的数组。这个数组中的项目由 Web 服务器创建.
*/

echo $_SERVER['PHP_SELF'];
echo "<br>";
echo $_SERVER['SERVER_NAME'];
echo "<br>";
echo $_SERVER['HTTP_HOST'];
echo "<br>";
echo $_SERVER['HTTP_REFERER'];
echo "<br>";
echo $_SERVER['HTTP_USER_AGENT'];
echo "<br>";
echo $_SERVER['SCRIPT_NAME'];
?>